#ifndef ENTITY2D_H
#define ENTITY2D_H
//----------------------------------------------------------------
#include "Structs.h"
#include "Defines.h"
//----------------------------------------------------------------
namespace ns
{
	class Renderer;

	class ENGINE_API Entity2D
	{
	public:

		Entity2D();
		~Entity2D();

		virtual void Draw(Renderer* renderer);

		void setPosition(float posX, float posY);
		void setScale(float scaleWidth, float scaleHeight);
		void setRotation(float rotation);

		//Danii
		void setName (string kName);
		const string& getName () const;
		//----
		float getPosX(){return pfX;}
		float getPosY(){return pfY;}
		float getScaleW(){return pfW;}
		float getScaleH(){return pfH;}
		float getRot(){return pfRot;}

	private:
		float pfX,pfY;//pos
		float pfW,pfH;//scale
		float pfRot; //rot
		string name;
	};	
	#include "Entity2D.inl"
}
//----------------------------------------------------------------
#endif